﻿namespace RuoVea.Notes.Server.Models;

/// <summary>
/// 标签
/// </summary>
[SugarTable(nameof(NtTag), "标签")]
public class NtTag : EntityBase
{
    /// <summary>
    /// 标签名
    /// </summary>
    [Required, MaxLength(255)]
    [SugarColumn(ColumnDescription = "标签名")]
    public string TagName { get; set; }

    /// <summary>
    /// 笔记与标签关联
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public List<NtNoteTag> NoteTags { get; set; }
}
